package com.initialize.gateway.config;

import com.initialize.core.security.config.CustomizeAuthenticationEntryPoint;
import com.initialize.core.security.config.SecurityConfiguration;
import com.initialize.core.security.config.SecurityRequestConfig;
import com.initialize.core.security.filter.CustomerJwtAuthenticationTokenFilter;
import com.initialize.core.security.handler.CustomerAuthenticationFailHandler;
import com.initialize.core.security.handler.CustomerRestAccessDeniedHandler;
import com.initialize.core.security.handler.CustomizeAuthenticationSuccessHandler;
import com.initialize.core.security.service.UserService;

/**
 * Created with IntelliJ IDEA.
 * User: jane
 * Date: 2020/1/6
 * Time: 5:13 下午
 * Description:
 */
public class SecurityWebMvcConfig extends SecurityConfiguration {



    public SecurityWebMvcConfig(UserService userService, CustomizeAuthenticationEntryPoint customizeAuthenticationEntryPoint, CustomizeAuthenticationSuccessHandler customizeAuthenticationSuccessHandler, CustomerRestAccessDeniedHandler customerAuthenticationEntryPoint, CustomerJwtAuthenticationTokenFilter customerJwtAuthenticationTokenFilter, CustomerAuthenticationFailHandler customerAuthenticationFailHandler) {
        super(userService, customizeAuthenticationEntryPoint, customizeAuthenticationSuccessHandler, customerAuthenticationEntryPoint, customerJwtAuthenticationTokenFilter, customerAuthenticationFailHandler);
        super.setSecurityRequestList(SecurityRequestConfig.securityRequestList);
        super.setCompetenceRequestList(SecurityRequestConfig.competenceRequestList);
    }
}